<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .title {
            font-size: 30px;
        }
    </style>
</head>
<body>
<div class="title" onclick="showMsg()">弹层</div>
<script>
    function showMsg(){
        if(window.hm){
            window.hm.show('成功')
        }
    }
</script>
</body>
</html>